package com.youan.serve.dao.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.youan.pangu.base.bean.ElementTree;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author auto_code
 * @since 2020-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_function")
public class Function extends ElementTree implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * 功能id
     */
    @TableId(value = "fun_id")
    private String funId;

    /**
     * 功能名称
     */
    private String funName;

    /**
     * 功能路径router配置
     */
    private String funPath;

    /**
     * 功能路径导航栏上显示的绝对路径
     */
    private String funAbsPath;

    /**
     * 功能内容路由的话存组件路径
     */
    private String funContent;

    /**
     * 父节点id
     */
    private String parentId;

    /**
     * 功能图标
     */
    private String funIcon;

    /**
     * 功能序号
     */
    private String funSeqno;

    /**
     * 功能类型是按钮还是界面 page是路由 button是按钮
     */
    private String funType;


    @Override
    public String getId() {
        return this.funId;
    }

    @Override
    public void setId() {
        this.id = this.funId;
    }

    @Override
    public String getLabel() {
        return this.funName;
    }

    @Override
    public void setLabel() {
        this.label = this.funName;
    }
}
